﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Com.ThrongIn.BLL;
namespace ThrongIn
{
    public partial class SearchResult : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                string keywords = String.Empty ;
                if (Request.QueryString["search"] != null && Request.QueryString["search"].Length > 0)
                    keywords = Request.QueryString["search"];
                else
                    keywords = Convert.ToString(Session["Search"]);
                ucSearch.DataSource = new ProfileBLL().GetProfilesByKeywords(keywords,true);
                ucSearch.BindControl();
                Session.Remove("search");
            }
        }
    }
}